home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / shell / burden / src / gui.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-05  |  2.2 KB  |  99 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    masterHyperID ;
  9. extern int    MJ_BASEOBJ ;
  10. extern int    iconDialogID ;
  11. extern int    iconDummyDButtonID ;
  12. extern int    iconQuitIconID ;
  13. extern int    iconQuitFunc() ;
  14. extern int    iconMessageID ;
  15.  
  16. #define ALIGN    4
  17. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  18.  
  19. /*    MMI_init 用データ    */
  20.  
  21. /*    ヘッダ    */
  22.  
  23. MMIINIT    initDataGUI = { "MmiInit",   5, 0 } ;
  24.  
  25. /* masterHyperID */
  26.  
  27. static MMIPACKET d001 = {    &masterHyperID,
  28.                             &MJ_BASEOBJ,
  29.                             &MJ_HYPER,
  30.                             OFFSET(HYPER),
  31.                             MS_NONE
  32.                         } ;
  33. static HYPER    d001d = {    MS_NONEL40,
  34.                                0,   0,  99,  99, 0, 0, 0,
  35.                             MS_NONEL40,
  36.                         } ;
  37.  
  38. /* iconDialogID */
  39.  
  40. static MMIPACKET d002 = {    &iconDialogID,
  41.                             &masterHyperID,
  42.                             &MJ_DIALOGL40,
  43.                             OFFSET(DIALOGL40),
  44.                             MS_NONE
  45.                         } ;
  46. static DIALOGL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  47.                                0, 455,  42, 479, 8, 7, 8,
  48.                             MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
  49.                             NULL,   0,   0
  50.                         } ;
  51.  
  52. /* iconDummyDButtonID */
  53.  
  54. static MMIPACKET d003 = {    &iconDummyDButtonID,
  55.                             &iconDialogID,
  56.                             &MJ_DBUTTONL40,
  57.                             OFFSET(DBUTTONL40),
  58.                             MS_NONE
  59.                         } ;
  60. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
  61.                               17, 460,  37, 474, 8, 8, 8,
  62.                             MS_DFRAMEL40 | MS_FRAMEL40,
  63.                             0,
  64.                             0x0000
  65.                         } ;
  66.  
  67. /* iconQuitIconID */
  68.  
  69. static MMIPACKET d004 = {    &iconQuitIconID,
  70.                             &iconDialogID,
  71.                             &MJ_ICONL40,
  72.                             OFFSET(ICONL40),
  73.                             MS_NONE
  74.                         } ;
  75. static ICONL40    d004d =     {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_CENTERL40,
  76.                                5, 462,  15, 472, 8, 9, 2,
  77.                             MS_UFRAMEL40 | MS_FRAMEL40,
  78.                             iconQuitFunc,
  79.                             0x801d, 512
  80.                         } ;
  81.  
  82. /* iconMessageID */
  83.  
  84. static MMIPACKET d005 = {    &iconMessageID,
  85.                             &iconDialogID,
  86.                             &MJ_MSGL40,
  87.                             0,
  88.                             MS_NONE
  89.                         } ;
  90. static MSGL40    d005d =     {    MS_DSPONLYL40,
  91.                               19, 462,  36, 473, 8, 8,15,
  92.                             MS_OPAQUEL40,
  93.                             "100",
  94.                                1,  12,  12,
  95.                             MS_NONEL40,
  96.                                0,   0
  97.                         } ;
  98.  
  99.